package com.ruoyi.receipt.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 密保和用户关联关系对象 tb_ca_user
 * 
 * @author ruoyi
 * @date 2021-03-27
 */
public class TbCaUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** tb_user用户id */
    @Excel(name = "tb_user用户id")
    private Long userId;

    /** tb_ca_manager表id */
    @Excel(name = "tb_ca_manager表id")
    private Long caManagerId;

    /** 回答 */
    @Excel(name = "回答")
    private String answer;

    /** 删除状态 0未删除(默认) 1已删除 */
    @Excel(name = "删除状态 0未删除(默认) 1已删除")
    private Integer isDel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCaManagerId(Long caManagerId) 
    {
        this.caManagerId = caManagerId;
    }

    public Long getCaManagerId() 
    {
        return caManagerId;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("caManagerId", getCaManagerId())
            .append("answer", getAnswer())
            .append("isDel", getIsDel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    public TbCaUser(Long id,Long userId, Long caManagerId, String answer, Integer isDel) {
        this.id=id;
        this.userId = userId;
        this.caManagerId = caManagerId;
        this.answer = answer;
        this.isDel = isDel;
    }

    public TbCaUser() {
    }
}
